package com.wen.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.wen.pojo.Stock;

import com.wen.pojo.vo.StockVo;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Update;

public interface StockMapper extends BaseMapper<Stock> {

    @Update("UPDATE stock SET on_off=#{event} WHERE stock_id=#{id}")
    boolean StoUp(@Param("event")Long event,@Param("id")Long id);

    Page<Stock> pageListStock(Page page, @Param("stockVo") StockVo stockVo);
}
